﻿@using www.Controllers
@model List<Core.Contract.DataContract.RelaxStoryDataContract>
@if (Model != null)
{
    foreach (var item in Model)
    {
    <div class="readfun">
        <div class="imgredstory">
            <a href="/Home/AngleSaidDetail/@Session["Culture"]/@item.CategoryId/@item.Id/@item.Tag">
                <img src="/@item.Image" alt="@item.Name"/>
            </a>
        </div>
        <div class="deinfo">
            <div class="row name">
                <h3><b><a href="/Home/AngleSaidDetail/@Session["Culture"]/@item.CategoryId/@item.Id/@item.Tag">@item.Name</a></b></h3>
            </div>
            <div class="content detail-content">
                @if (item.Decription != null && HttpUtility.HtmlDecode(item.Decription).Length > 80)
                {
                    <h4>@Html.Raw(HttpUtility.HtmlDecode(item.Decription).Substring(0, 80)) ... </h4> 
                    <a href="/Home/AngleSaidDetail/@Session["Culture"]/@item.CategoryId/@item.Id/@item.Tag">@Utility.GetResource.GetResouceValue(Session["Culture"], "lblWatchDetail")...</a>
                }
                else
                {
                    <h4>@Html.Raw(HttpUtility.HtmlDecode(item.Decription))</h4> 
                    <a href="/Home/AngleSaidDetail/@Session["Culture"]/@item.CategoryId/@item.Id/@item.Tag">@Utility.GetResource.GetResouceValue(Session["Culture"], "lblWatchDetail")...</a>
                }
            </div>
        </div>
    </div>
    }
}